<title>项目详情</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="#(assets)/css/weui2.css"/>
<script src="#(assets)/js/zepto.min.js"></script>
<script src="#(assets)/js/fx.js"></script>
<style>
	body{background:#f2f6f9;margin:0;padding:0}
</style>
#@checkToken()
<div style="height:50px;background:#FFF;width:100%">
	<div id="activedetail" align="center" style="color:#656565;font-size:14px;margin:0 6% 0 8%;width:20%;height:48px;float:left;line-height:50px">
		活动信息
	</div>
	<div id="certdetail" align="center" style="color:#656565;font-size:14px;margin:0 6% 0 6%;width:20%;height:48px;float:left;line-height:50px">
		证件信息
	</div>
	<div id="contractdetail" align="center" style="color:#fa3048;font-size:14px;margin:0 8% 0 6%;width:20%;border-bottom:2px solid #fa3048;height:48px;float:left;line-height:50px">
		合同信息
	</div>  
</div>
<div id="contract">
	
</div>
<script>
$(document).ready(function(){
	var id = GetRequest()["id"];
	var rates = 0;
	var amounts = 0;
	var times = 0;
	console.log(id);
	var url ="#(path)/bid/info?id="+id;
	$.getJSON(url, function(data) {
		var iteminfo = data.data.detail;
		console.log(iteminfo.contract_info);
		$("#contract").load(iteminfo.contract_info);
		//$("#contract").innerHTML = '<object type="text/html" data="'+iteminfo.contract_info+'" width="100%"></object>'; 
	});
	$("#activedetail").click(function(){
		window.location.href="#(path)/app/page/invest-activedetail?id="+id;
	});
	$("#certdetail").click(function(){
		window.location.href="#(path)/app/page/invest-certdetail?id="+id;
	});
	$("#contractdetail").click(function(){
		window.location.href="#(path)/app/page/invest-contractdetail?id="+id;
	}); 
	function GetRequest() {   
	   var url = location.search; //获取url中"?"符后的字串  
	   var theRequest = new Object();  
	   if (url.indexOf("?") != -1) {  
		  var str = url.substr(1);  
		  strs = str.split("&");  
		  for(var i = 0; i < strs.length; i ++) {  
			 theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);  
		  }  
	   }  
	   return theRequest;  
	}  
	
}); 
</script>
	
	
	

	
</body>